package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 请假管理对象 p_daily_leave
 * 
 * @author ruoyi
 * @date 2023-11-22
 */
public class DailyLeave extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    @Excel(name = "部门ID")
    private Long deptId;

    /** 请假类型 */
    @Excel(name = "请假类型")
    private String type;

    /** 原因 */
    @Excel(name = "原因")
    private String reason;

    /** 附件 */
    @Excel(name = "附件")
    private String reasonFile;

    /** 出去时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出去时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startLeaveTime;

    /** 回来时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回来时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endBackTime;

    /** 审核进度 */
    @Excel(name = "审核进度")
    private String progress;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setReasonFile(String reasonFile) 
    {
        this.reasonFile = reasonFile;
    }

    public String getReasonFile() 
    {
        return reasonFile;
    }
    public void setStartLeaveTime(Date startLeaveTime) 
    {
        this.startLeaveTime = startLeaveTime;
    }

    public Date getStartLeaveTime() 
    {
        return startLeaveTime;
    }
    public void setEndBackTime(Date endBackTime) 
    {
        this.endBackTime = endBackTime;
    }

    public Date getEndBackTime() 
    {
        return endBackTime;
    }
    public void setProgress(String progress) 
    {
        this.progress = progress;
    }

    public String getProgress() 
    {
        return progress;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("type", getType())
            .append("reason", getReason())
            .append("reasonFile", getReasonFile())
            .append("startLeaveTime", getStartLeaveTime())
            .append("endBackTime", getEndBackTime())
            .append("progress", getProgress())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
